package top.kaoshanji.r2ch07c;

/**
 * 代码清单-r2ch07c-229页a：测试CGLib创建的代理类
 * @author kaoshanji
 * ^_^
 * create time 2025/5/7 15:19
 */
public class CglibProxyMain {

    public static void main(String[] args) {
        CglibProxy cglibProxy = new CglibProxy();
        ForumServiceImpl forumService = (ForumServiceImpl)cglibProxy.getProxy(ForumServiceImpl.class);

        forumService.removeForum(10);
        forumService.removeTopic(1023);

    }

}
